package cn.samler.diandi.api.mapper;

import cn.samler.diandi.api.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    User findById(int id);
    User findByName(String username);
    User findByPassport(@Param("type") String type, @Param("key") String key, @Param("val") String val);
    int update(User user);
    int insert(User user);
    int insertPassport(@Param("id") int id, @Param("type") String type, @Param("mark") String mark);
}
